# 一种事务的多种形态
from cat import Cat
from dog import Dog
from person import Person

lele = Cat("乐乐")
wangcai = Dog("旺财")

# lele.eat()
# wangcai.eat()

per = Person()
# 人去喂猫
# per.feedCat(lele)
# per.feedDog(wangcai)

per.feedAnimal(lele)
per.feedAnimal(wangcai)